﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace cube
{
    static class Program
    {
        static cubeForm cubeFrm;
        /// <summary>
        /// Der Haupteinstiegspunkt für die Anwendung.
        /// </summary>
        [STAThread]
        static void Main(String[] args)
        {          
            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            cubeFrm = new cubeForm(args);
            Application.Run(cubeFrm);
        }

        static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
        {
            cubeFrm.errorForm.SetErrorText(e.Exception.Message);
        }
    }
}
